package com.ls.socketio.config;
import	java.util.HashMap;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.Map;

/**
 * @author liShan
 * @date 2019/9/4 2:31
 */
@Getter
@Setter
@Configuration
@ConfigurationProperties(prefix = "netty.socketio.server")
@ToString
public class Properties {

    private String url = "http://127.0.0.1:8084/send/command/";

    private Map<String, String> sendUrlMap;

    {
        sendUrlMap = new HashMap<> (9);
        sendUrlMap.put("com.ls.socketio.bean.UncheckCommand", "http://127.0.0.1:8084/send/command/32");
        sendUrlMap.put("com.ls.socketio.bean.SosCommand", "http://127.0.0.1:8084/send/command/30");
        sendUrlMap.put("com.ls.socketio.bean.LightingCommand", "http://127.0.0.1:8084/send/command/50");
        sendUrlMap.put("com.ls.socketio.bean.AuthCommand", "http://127.0.0.1:8084/send/command/10");
        sendUrlMap.put("com.ls.socketio.bean.AirCommand", "http://127.0.0.1:8084/send/command/21");
        sendUrlMap.put("com.ls.socketio.bean.InfraRedCommand", "http://127.0.0.1:8084/send/command/22");
        sendUrlMap.put("com.ls.socketio.bean.SwitchCommand", "http://127.0.0.1:8084/send/command/40");
    }


}
